<?php
namespace Activity\Models;

class Subscribe extends Base
{
    public function initialize()
    {
    }

    public function getSource()
    {
        return 'daishu_appointment';
    }

    public function gets()
    {
        $query = 'SELECT `userid`,`phone` FROM `daishu_appointment`';
        try {
            $ret = $this->db()->query($query)->fetchAll();
            if ($ret !== false && is_array($ret) && count($ret) > 0) {
                return $ret;
            }
        } catch (\PDOException $ex) {
            $this->errorLog('SELECT', $this->db()->getSQLStatement(), $ex->getMessage(), __FILE__, __LINE__);
        }
        return false;
    }
}
